@(message: String, orders : List[Product], valueSearch: String)
@main("Mybatis-Spring-Play Demo") { 
	
	<h2>@message</h2>

	<table class="datatable">
		<tr>
			<th>Id</th>
            <th>Name</th>
            <th>Price</th>
			<th></th>
			<th></th>
		</tr>
		@orders.map { c =>
			<tr>
				<td>@c.getId</td>
                <td>@c.getName</td>
                <td>@c.getPrice</td>
                <td>
                    <form action="@routes.ProductController.editProduct(c.getId)" method="GET">
                        <input type="submit" value="Edit">
                    </form>
                </td>
                <td>
                    <form action="@routes.ProductController.deleteProduct(c.getId)" method="POST">
                        <input type="submit" value="Delete">
                    </form>
                </td>
			</tr>
		}
	</table>
<a href="@routes.ProductController.createProduct" style="margin-top: 10px; display: block;">Create new Product</a>
}


